package org.example;

import org.example.service.BrandService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DIConstructor {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        BrandService brandService = (BrandService) applicationContext.getBean("brandService");
        brandService.save();
    }
}
